package com.snow4cloud.snow.admin.controller;

import com.snow4cloud.common.core.util.R;
import com.snow4cloud.snow.admin.dao.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author fanxl
 * @Date 2021/5/10
 **/
@RestController
@RequestMapping("/org")
public class OrgController {

    @Autowired
    private SysUserMapper sysUserMapper;
    @GetMapping("/{id}")
    public R getById(@PathVariable Integer id) {
        return R.ok(sysUserMapper.getUserVoById(id));
    }
}
